package cn.leaves.wb.db.dao.jdbc;

import java.sql.SQLException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

import cn.leaves.wb.db.bean.Profile;
import cn.leaves.wb.db.bean.User;
import cn.leaves.wb.db.dao.UserDAO;

@Service(value = "userDAO")
public class UserDAOJDBCImpl extends BaseJDBC implements UserDAO {
	private Log log = LogFactory.getLog(getClass());

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.leaves.wb.db.dao.UserDAO#save(cn.leaves.wb.db.bean.User)
	 */
	@Override
	public void save(User user) throws SQLException {
		super.save(user, new String[] { "modified" });
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.leaves.wb.db.dao.UserDAO#update(cn.leaves.wb.db.bean.User)
	 */
	@Override
	public void update(User user) {
		// TODO Auto-generated method stub

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.leaves.wb.db.dao.UserDAO#delete(java.lang.Long)
	 */
	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.leaves.wb.db.dao.UserDAO#findById(java.lang.Long)
	 */
	@Override
	public Profile findById(Long id) {
		// TODO Auto-generated method stub
		return null;
	}

}
